<?php

namespace App\Http\Controllers\Web;

use App\Caches\QrcodeJumpUrlCache;
use Illuminate\Http\Request;

class QrcodeJumpUrlController extends ControllerBase
{
    public function index(Request $request)
    {
        $cache_id = $request->input('cache_id');
        $query = QrcodeJumpUrlCache::getInstance()->get($cache_id);
        if (empty($query)) {
            return yqerr(6037);
        }

        return view('qrcode_jump_url.index', [
            'query' => $query,
        ]);
    }
}
